package com.life.service.impl;

import com.life.entity.Banner;
import com.life.service.BannerService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class BannerServiceImpl implements BannerService{
    @Override
    public List<Banner> getUserBanner() {
        List<Banner> list= new ArrayList<>();
        for(int i=1;i<3;i++){
            Banner banner=new Banner("http://localhost:8080/dest/image/home-0"+i+".jpg");
            list.add(banner);
        }
        return list;
    }
}
